package org.oims.simpleserver.tasks;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class TaskQueueExecutor {
    private static final ExecutorService threadPool = Executors.newFixedThreadPool(4);

    public static void addTask(SimpleTask task) {
        threadPool.execute(task::execute);
    }
}
